<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_user_account_hy".
 *
 * @property integer $id
 * @property integer $userid
 * @property double $amount
 * @property double $offline_amount
 * @property double $can_drawal_amount
 * @property double $yet_drawal_amount
 */
class UserAccountHy extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_user_account_hy';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid'], 'required'],
            [['userid'], 'integer'],
            [['amount', 'offline_amount', 'can_drawal_amount', 'yet_drawal_amount'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增ID',
            'userid' => '用户ID',
            'amount' => '账户金额',
            'offline_amount' => '下线所得金额',
            'can_drawal_amount' => '可提现金额',
            'yet_drawal_amount' => '已提现金额',
        ];
    }
}
